package com.xianrenit.xianrenpuzi.manager.mapper;

import com.xianrenit.xianrenpuzi.model.entity.sys.SysRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysRoleMapper {
    List<SysRole> selectByRoleName(String roleName);

    void deleteById(Long id);

    void save(SysRole sysRole);

    SysRole getById(Long id);

    void update(@Param("sysRole") SysRole sysRole);

    List<SysRole> selectRolesByUserId(Long userId);
}
